/**
 * This class will implement the parking Row Entity
 * 
 * @author Gil Levinson
 * @author Boris Fradlis
 * @author Yogev Levi
 * @author Hila Porat
 *  
 */
package vcpClasses;

import java.io.Serializable;

// Start of ParkingRow ********************************************************

@SuppressWarnings("serial")
public class ParkingRow implements Serializable {
	
	// Class variables ********************************************************	
	private int rowNumber;
	private int lotNumber;
	private int floorNumber;
	private String parkingRowStatus;
	

	//Constructor *************************************************************
	
	/**
	 * Constructor Using the following fields:
	 * @param r  the row number
	 * @param n the lot number
	 * @param f the floor number
	 */
	
	public ParkingRow(int r, int n, int f)
	{
		this.rowNumber  = r;
		this.lotNumber = n;
		this.setFloorNumber(f);
	}
	
	/**
	 * Construct using other ParkingRow wrapped in SystemTypes object
	 * @param obj - the SystemTypes object
	 */
	
	public ParkingRow(Serializable obj) {
		this.lotNumber = ((ParkingRow)obj).getLotNumber();
		this.rowNumber = ((ParkingRow)obj).getRowNumber();
		this.setFloorNumber(((ParkingRow)obj).getFloorNumber());
	}

	// Getters and Setters ****************************************
	
	/**
	 * @return the rowNumber
	 */
	public int getRowNumber() {
		return rowNumber;
	}

	/**
	 * @param rowNumber the rowNumber to set
	 */
	public void setRowNumber(int rowNumber) {
		this.rowNumber = rowNumber;
	}

	/**
	 * @return the lotNumber
	 */
	public int getLotNumber() {
		return lotNumber;
	}


	/**
	 * @param lotNumber the lotNumber to set
	 */
	public void setLotNumber(int lotNumber) {
		this.lotNumber = lotNumber;
	}


	/**
	 * @return the parkingRowStatus
	 */
	public String getParkingRowStatus() {
		return parkingRowStatus;
	}
	
	/**
	 * @param parkingRowStatus the parkingRowStatus to set
	 */
	public void setParkingRowStatus(String parkingRowStatus) {
		this.parkingRowStatus = parkingRowStatus;
	}


	/**
	 * @return the floorNumber
	 */
	public int getFloorNumber() {
		return floorNumber;
	}


	/**
	 * @param floorNumber the floorNumber to set
	 */
	public void setFloorNumber(int floorNumber) {
		this.floorNumber = floorNumber;
	}

	
}
